package org.vison.wonfu.framework.test.admin.dao.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.vison.wonfu.framework.dao.Column;
import org.vison.wonfu.framework.dao.IPO;
import org.vison.wonfu.framework.dao.TableDefine;

import java.time.LocalDateTime;

@Data
@TableName("admin")
@TableDefine(name = "admin",comment = "管理员")
public class AdminPO implements IPO<Long> {
    @Column(comment = "主键",autoIncrement = true,primaryKey = true)
    private Long id;
    @Column(length = 32,comment = "用户名",unique = true)
    private String username;
    @Column(length = 32,comment = "密码")
    private String password;
    @Column(length = 32,comment = "邮箱")
    private String email;
    @Column(comment = "是否删除",defaultValue = "0")
    private Integer deleted;
    @Column(comment = "创建时间")
    private LocalDateTime createTime;
    @Column(comment = "更新时间")
    private LocalDateTime updateTime;
}
